package com.itheima.mapper;

import com.itheima.pojo.Setmeal;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SetmealMapper {

    /**
     * 查询所有套餐
     * @return
     */
    @Select("select id, name, code, help_code, sex, age, price, remark, attention, img from t_setmeal")
    List<Setmeal> selectAll();

    /**
     * 根据套餐id查询套餐
     * @param id
     * @return
     */
    Setmeal selectById(Integer id);
}
